3.84 \(\int \frac{(a g+b g x)^3 (A+B \log (\frac{e (a+b x)}{c+d x}))^2}{c i+d i x} \, dx\)

Optimal. Leaf size=718 \[ \frac{2 B g^3 (b c-a d)^3 \text{PolyLog}\left (2,\frac{d (a+b x)}{b (c+d x)}\right ) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{d^4 i}+\frac{6 B^2 g^3 (b c-a d)^3 \text{PolyLog}\left (2,\frac{d (a+b x)}{b (c+d x)}\right )}{d^4 i}+\frac{7 B^2 g^3 (b c-a d)^3 \text{PolyLog}\left (2,\frac{b (c+d x)}{d (a+b x)}\right )}{3 d^4 i}-\frac{2 B^2 g^3 (b c-a d)^3 \text{PolyLog}\left (3,\frac{d (a+b x)}{b (c+d x)}\right )}{d^4 i}+\frac{b^3 g^3 (c+d x)^3 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{3 d^4 i}-\frac{3 b^2 g^3 (c+d x)^2 (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{2 d^4 i}-\frac{b^2 B g^3 (c+d x)^2 (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{3 d^4 i}+\frac{3 g^3 (a+b x) (b c-a d)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{d^3 i}+\frac{g^3 (b c-a d)^3 \log \left (\frac{b c-a d}{b (c+d x)}\right ) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{d^4 i}+\frac{7 B g^3 (a+b x) (b c-a d)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{3 d^3 i}+\frac{6 B g^3 (b c-a d)^3 \log \left (\frac{b c-a d}{b (c+d x)}\right ) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{d^4 i}-\frac{7 B g^3 (b c-a d)^3 \log \left (1-\frac{b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{3 d^4 i}+\frac{b B^2 g^3 x (b c-a d)^2}{3 d^3 i}+\frac{B^2 g^3 (b c-a d)^3 \log \left (\frac{a+b x}{c+d x}\right )}{3 d^4 i}-\frac{2 B^2 g^3 (b c-a d)^3 \log (c+d x)}{d^4 i} \]

[Out]

(b*B^2*(b*c - a*d)^2*g^3*x)/(3*d^3*i) + (B^2*(b*c - a*d)^3*g^3*Log[(a + b*x)/(c + d*x)])/(3*d^4*i) + (7*B*(b*c
 - a*d)^2*g^3*(a + b*x)*(A + B*Log[(e*(a + b*x))/(c + d*x)]))/(3*d^3*i) - (b^2*B*(b*c - a*d)*g^3*(c + d*x)^2*(
A + B*Log[(e*(a + b*x))/(c + d*x)]))/(3*d^4*i) + (6*B*(b*c - a*d)^3*g^3*Log[(b*c - a*d)/(b*(c + d*x))]*(A + B*
Log[(e*(a + b*x))/(c + d*x)]))/(d^4*i) + (3*(b*c - a*d)^2*g^3*(a + b*x)*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2
)/(d^3*i) - (3*b^2*(b*c - a*d)*g^3*(c + d*x)^2*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2)/(2*d^4*i) + (b^3*g^3*(c
 + d*x)^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2)/(3*d^4*i) + ((b*c - a*d)^3*g^3*Log[(b*c - a*d)/(b*(c + d*x))
]*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2)/(d^4*i) - (2*B^2*(b*c - a*d)^3*g^3*Log[c + d*x])/(d^4*i) - (7*B*(b*c
 - a*d)^3*g^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])*Log[1 - (b*(c + d*x))/(d*(a + b*x))])/(3*d^4*i) + (6*B^2*(b
*c - a*d)^3*g^3*PolyLog[2, (d*(a + b*x))/(b*(c + d*x))])/(d^4*i) + (2*B*(b*c - a*d)^3*g^3*(A + B*Log[(e*(a + b
*x))/(c + d*x)])*PolyLog[2, (d*(a + b*x))/(b*(c + d*x))])/(d^4*i) + (7*B^2*(b*c - a*d)^3*g^3*PolyLog[2, (b*(c
+ d*x))/(d*(a + b*x))])/(3*d^4*i) - (2*B^2*(b*c - a*d)^3*g^3*PolyLog[3, (d*(a + b*x))/(b*(c + d*x))])/(d^4*i)

________________________________________________________________________________________

Rubi [B]  time = 5.61611, antiderivative size = 1828, normalized size of antiderivative = 2.55, number of steps used = 106, number of rules used = 28, integrand size = 42, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.667, Rules used = {2528, 2523, 12, 2524, 2418, 2390, 2301, 2394, 2393, 2391, 2525, 2486, 31, 43, 6688, 6742, 2499, 2396, 2433, 2374, 6589, 2302, 30, 2500, 2375, 2317, 2440, 2434} \[ \text{result too large to display} \]

Antiderivative was successfully verified.

[In]

Int[((a*g + b*g*x)^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2)/(c*i + d*i*x),x]

[Out]

(5*A*b*B*(b*c - a*d)^2*g^3*x)/(3*d^3*i) + (b*B^2*(b*c - a*d)^2*g^3*x)/(3*d^3*i) - (a*B^2*(b*c - a*d)^2*g^3*Log
[a + b*x]^2)/(d^3*i) + (B^2*(b*c - a*d)^3*g^3*Log[a + b*x]*Log[(c + d*x)^(-1)]^2)/(d^4*i) - (B^2*(b*c - a*d)^3
*g^3*Log[-((d*(a + b*x))/(b*c - a*d))]*Log[(c + d*x)^(-1)]^2)/(d^4*i) + (5*B^2*(b*c - a*d)^2*g^3*(a + b*x)*Log
[(e*(a + b*x))/(c + d*x)])/(3*d^3*i) - (B*(b*c - a*d)*g^3*(a + b*x)^2*(A + B*Log[(e*(a + b*x))/(c + d*x)]))/(3
*d^2*i) + (2*a*B*(b*c - a*d)^2*g^3*Log[a + b*x]*(A + B*Log[(e*(a + b*x))/(c + d*x)]))/(d^3*i) + (b*(b*c - a*d)
^2*g^3*x*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2)/(d^3*i) - ((b*c - a*d)*g^3*(a + b*x)^2*(A + B*Log[(e*(a + b*x
))/(c + d*x)])^2)/(2*d^2*i) + (g^3*(a + b*x)^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2)/(3*d*i) - (2*B^2*(b*c -
 a*d)^3*g^3*Log[c + d*x])/(d^4*i) + (2*b*B^2*c*(b*c - a*d)^2*g^3*Log[-((d*(a + b*x))/(b*c - a*d))]*Log[c + d*x
])/(d^4*i) + (5*B^2*(b*c - a*d)^3*g^3*Log[-((d*(a + b*x))/(b*c - a*d))]*Log[c + d*x])/(3*d^4*i) - (2*b*B*c*(b*
c - a*d)^2*g^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])*Log[c + d*x])/(d^4*i) - (5*B*(b*c - a*d)^3*g^3*(A + B*Log[
(e*(a + b*x))/(c + d*x)])*Log[c + d*x])/(3*d^4*i) - (b*B^2*c*(b*c - a*d)^2*g^3*Log[c + d*x]^2)/(d^4*i) - (5*B^
2*(b*c - a*d)^3*g^3*Log[c + d*x]^2)/(6*d^4*i) + (2*a*B^2*(b*c - a*d)^2*g^3*Log[a + b*x]*Log[(b*(c + d*x))/(b*c
 - a*d)])/(d^3*i) - (B^2*(b*c - a*d)^3*g^3*Log[a + b*x]^2*Log[(b*(c + d*x))/(b*c - a*d)])/(d^4*i) + (B^2*(b*c
- a*d)^3*g^3*Log[a + b*x]^2*Log[i*(c + d*x)])/(d^4*i) + (2*B^2*(b*c - a*d)^3*g^3*Log[a + b*x]*Log[(c + d*x)^(-
1)]*Log[i*(c + d*x)])/(d^4*i) - (A*B*(b*c - a*d)^3*g^3*Log[i*(c + d*x)]^2)/(d^4*i) + (B^2*(b*c - a*d)^3*g^3*Lo
g[a + b*x]*Log[i*(c + d*x)]^2)/(d^4*i) - (B^2*(b*c - a*d)^3*g^3*Log[-((d*(a + b*x))/(b*c - a*d))]*Log[i*(c + d
*x)]^2)/(d^4*i) - (B^2*(b*c - a*d)^3*g^3*Log[i*(c + d*x)]^3)/(3*d^4*i) + (2*A*B*(b*c - a*d)^3*g^3*Log[-((d*(a
+ b*x))/(b*c - a*d))]*Log[c*i + d*i*x])/(d^4*i) - (2*B^2*(b*c - a*d)^3*g^3*Log[-((d*(a + b*x))/(b*c - a*d))]*(
Log[a + b*x] + Log[(c + d*x)^(-1)] - Log[(e*(a + b*x))/(c + d*x)])*Log[c*i + d*i*x])/(d^4*i) - ((b*c - a*d)^3*
g^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2*Log[c*i + d*i*x])/(d^4*i) + (B^2*(b*c - a*d)^3*g^3*Log[-((d*(a + b*
x))/(b*c - a*d))]*Log[c*i + d*i*x]^2)/(d^4*i) - (B^2*(b*c - a*d)^3*g^3*Log[(e*(a + b*x))/(c + d*x)]*Log[c*i +
d*i*x]^2)/(d^4*i) + (2*a*B^2*(b*c - a*d)^2*g^3*PolyLog[2, -((d*(a + b*x))/(b*c - a*d))])/(d^3*i) - (2*B^2*(b*c
 - a*d)^3*g^3*Log[a + b*x]*PolyLog[2, -((d*(a + b*x))/(b*c - a*d))])/(d^4*i) + (2*b*B^2*c*(b*c - a*d)^2*g^3*Po
lyLog[2, (b*(c + d*x))/(b*c - a*d)])/(d^4*i) + (2*A*B*(b*c - a*d)^3*g^3*PolyLog[2, (b*(c + d*x))/(b*c - a*d)])
/(d^4*i) + (5*B^2*(b*c - a*d)^3*g^3*PolyLog[2, (b*(c + d*x))/(b*c - a*d)])/(3*d^4*i) + (2*B^2*(b*c - a*d)^3*g^
3*Log[(c + d*x)^(-1)]*PolyLog[2, (b*(c + d*x))/(b*c - a*d)])/(d^4*i) - (2*B^2*(b*c - a*d)^3*g^3*(Log[a + b*x]
+ Log[(c + d*x)^(-1)] - Log[(e*(a + b*x))/(c + d*x)])*PolyLog[2, (b*(c + d*x))/(b*c - a*d)])/(d^4*i) + (2*B^2*
(b*c - a*d)^3*g^3*PolyLog[3, -((d*(a + b*x))/(b*c - a*d))])/(d^4*i) + (2*B^2*(b*c - a*d)^3*g^3*PolyLog[3, (b*(
c + d*x))/(b*c - a*d)])/(d^4*i)

Rule 2528

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)*(RGx_), x_Symbol] :> With[{u = ExpandIntegrand[(a + b*Log[c*
RFx^p])^n, RGx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, p}, x] && RationalFunctionQ[RFx, x] && RationalF
unctionQ[RGx, x] && IGtQ[n, 0]

Rule 2523

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.), x_Symbol] :> Simp[x*(a + b*Log[c*RFx^p])^n, x] - Dist[b*n*p
, Int[SimplifyIntegrand[(x*(a + b*Log[c*RFx^p])^(n - 1)*D[RFx, x])/RFx, x], x], x] /; FreeQ[{a, b, c, p}, x] &
& RationalFunctionQ[RFx, x] && IGtQ[n, 0]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 2524

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[(Log[d + e*x]*(a + b
*Log[c*RFx^p])^n)/e, x] - Dist[(b*n*p)/e, Int[(Log[d + e*x]*(a + b*Log[c*RFx^p])^(n - 1)*D[RFx, x])/RFx, x], x
] /; FreeQ[{a, b, c, d, e, p}, x] && RationalFunctionQ[RFx, x] && IGtQ[n, 0]

Rule 2418

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*(RFx_), x_Symbol] :> With[{u = ExpandIntegrand[
(a + b*Log[c*(d + e*x)^n])^p, RFx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n}, x] && RationalFunct
ionQ[RFx, x] && IntegerQ[p]

Rule 2390

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[((f*x)/d)^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2393

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + (c*e*x)/g])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2525

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)*((d_.) + (e_.)*(x_))^(m_.), x_Symbol] :> Simp[((d + e*x)^(m
+ 1)*(a + b*Log[c*RFx^p])^n)/(e*(m + 1)), x] - Dist[(b*n*p)/(e*(m + 1)), Int[SimplifyIntegrand[((d + e*x)^(m +
 1)*(a + b*Log[c*RFx^p])^(n - 1)*D[RFx, x])/RFx, x], x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && RationalFunc
tionQ[RFx, x] && IGtQ[n, 0] && (EqQ[n, 1] || IntegerQ[m]) && NeQ[m, -1]

Rule 2486

Int[Log[(e_.)*((f_.)*((a_.) + (b_.)*(x_))^(p_.)*((c_.) + (d_.)*(x_))^(q_.))^(r_.)]^(s_.), x_Symbol] :> Simp[((
a + b*x)*Log[e*(f*(a + b*x)^p*(c + d*x)^q)^r]^s)/b, x] + Dist[(q*r*s*(b*c - a*d))/b, Int[Log[e*(f*(a + b*x)^p*
(c + d*x)^q)^r]^(s - 1)/(c + d*x), x], x] /; FreeQ[{a, b, c, d, e, f, p, q, r, s}, x] && NeQ[b*c - a*d, 0] &&
EqQ[p + q, 0] && IGtQ[s, 0]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 6688

Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; SimplerIntegrandQ[v, u, x]]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rule 2499

Int[(Log[(e_.)*((f_.)*((a_.) + (b_.)*(x_))^(p_.)*((c_.) + (d_.)*(x_))^(q_.))^(r_.)]*((s_.) + Log[(i_.)*((g_.)
+ (h_.)*(x_))^(n_.)]*(t_.))^(m_.))/((j_.) + (k_.)*(x_)), x_Symbol] :> Simp[((s + t*Log[i*(g + h*x)^n])^(m + 1)
*Log[e*(f*(a + b*x)^p*(c + d*x)^q)^r])/(k*n*t*(m + 1)), x] + (-Dist[(b*p*r)/(k*n*t*(m + 1)), Int[(s + t*Log[i*
(g + h*x)^n])^(m + 1)/(a + b*x), x], x] - Dist[(d*q*r)/(k*n*t*(m + 1)), Int[(s + t*Log[i*(g + h*x)^n])^(m + 1)
/(c + d*x), x], x]) /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, s, t, m, n, p, q, r}, x] && NeQ[b*c - a*d, 0] &
& EqQ[h*j - g*k, 0] && IGtQ[m, 0]

Rule 2396

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*
(f + g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n])^p)/g, x] - Dist[(b*e*n*p)/g, Int[(Log[(e*(f + g*x))/(e*f -
d*g)]*(a + b*Log[c*(d + e*x)^n])^(p - 1))/(d + e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[e*
f - d*g, 0] && IGtQ[p, 1]

Rule 2433

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*((k_.) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[((k*x)/d)^r*(a + b*Log[c*x^n])^p*(f + g*Lo
g[h*((e*i - d*j)/e + (j*x)/e)^m]), x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, l, n, p, r},
 x] && EqQ[e*k - d*l, 0]

Rule 2374

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> -Sim
p[(PolyLog[2, -(d*f*x^m)]*(a + b*Log[c*x^n])^p)/m, x] + Dist[(b*n*p)/m, Int[(PolyLog[2, -(d*f*x^m)]*(a + b*Log
[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 6589

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rule 2302

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/(b*n), Subst[Int[x^p, x], x, a + b*L
og[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2500

Int[(Log[(e_.)*((f_.)*((a_.) + (b_.)*(x_))^(p_.)*((c_.) + (d_.)*(x_))^(q_.))^(r_.)]*((s_.) + Log[(i_.)*((g_.)
+ (h_.)*(x_))^(n_.)]*(t_.)))/((j_.) + (k_.)*(x_)), x_Symbol] :> Dist[Log[e*(f*(a + b*x)^p*(c + d*x)^q)^r] - Lo
g[(a + b*x)^(p*r)] - Log[(c + d*x)^(q*r)], Int[(s + t*Log[i*(g + h*x)^n])/(j + k*x), x], x] + (Int[(Log[(a + b
*x)^(p*r)]*(s + t*Log[i*(g + h*x)^n]))/(j + k*x), x] + Int[(Log[(c + d*x)^(q*r)]*(s + t*Log[i*(g + h*x)^n]))/(
j + k*x), x]) /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, s, t, n, p, q, r}, x] && NeQ[b*c - a*d, 0]

Rule 2375

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :
> Simp[(Log[d*(e + f*x^m)^r]*(a + b*Log[c*x^n])^(p + 1))/(b*n*(p + 1)), x] - Dist[(f*m*r)/(b*n*(p + 1)), Int[(
x^(m - 1)*(a + b*Log[c*x^n])^(p + 1))/(e + f*x^m), x], x] /; FreeQ[{a, b, c, d, e, f, r, m, n}, x] && IGtQ[p,
0] && NeQ[d*e, 1]

Rule 2317

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(Log[1 + (e*x)/d]*(a +
b*Log[c*x^n])^p)/e, x] - Dist[(b*n*p)/e, Int[(Log[1 + (e*x)/d]*(a + b*Log[c*x^n])^(p - 1))/x, x], x] /; FreeQ[
{a, b, c, d, e, n}, x] && IGtQ[p, 0]

Rule 2440

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*(g_.))
*((k_) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/l, Subst[Int[x^r*(a + b*Log[c*(-((e*k - d*l)/l) + (e*x)/l)^n])
*(f + g*Log[h*(-((j*k - i*l)/l) + (j*x)/l)^m]), x], x, k + l*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k,
 l, m, n}, x] && IntegerQ[r]

Rule 2434

Int[(((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*(g_.)
))/(x_), x_Symbol] :> Simp[Log[x]*(a + b*Log[c*(d + e*x)^n])*(f + g*Log[h*(i + j*x)^m]), x] + (-Dist[e*g*m, In
t[(Log[x]*(a + b*Log[c*(d + e*x)^n]))/(d + e*x), x], x] - Dist[b*j*n, Int[(Log[x]*(f + g*Log[h*(i + j*x)^m]))/
(i + j*x), x], x]) /; FreeQ[{a, b, c, d, e, f, g, h, i, j, m, n}, x] && EqQ[e*i - d*j, 0]

Rubi steps

\begin{align*} \int \frac{(a g+b g x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 c+84 d x} \, dx &=\int \left (\frac{b (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}+\frac{(-b c+a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^3 (84 c+84 d x)}-\frac{b (b c-a d) g^2 (a g+b g x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^2}+\frac{b g (a g+b g x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d}\right ) \, dx\\ &=\frac{(b g) \int (a g+b g x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \, dx}{84 d}-\frac{\left (b (b c-a d) g^2\right ) \int (a g+b g x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \, dx}{84 d^2}+\frac{\left (b (b c-a d)^2 g^3\right ) \int \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \, dx}{84 d^3}-\frac{\left ((b c-a d)^3 g^3\right ) \int \frac{\left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 c+84 d x} \, dx}{d^3}\\ &=\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}-\frac{B \int \frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{c+d x} \, dx}{126 d}+\frac{(B (b c-a d) g) \int \frac{(b c-a d) g^2 (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{c+d x} \, dx}{84 d^2}-\frac{\left (b B (b c-a d)^2 g^3\right ) \int \frac{(b c-a d) x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{(a+b x) (c+d x)} \, dx}{42 d^3}+\frac{\left (B (b c-a d)^3 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{e (a+b x)} \, dx}{42 d^4}\\ &=\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}-\frac{\left (B (b c-a d) g^3\right ) \int \frac{(a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{c+d x} \, dx}{126 d}+\frac{\left (B (b c-a d)^2 g^3\right ) \int \frac{(a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{c+d x} \, dx}{84 d^2}-\frac{\left (b B (b c-a d)^3 g^3\right ) \int \frac{x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{(a+b x) (c+d x)} \, dx}{42 d^3}+\frac{\left (B (b c-a d)^3 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{a+b x} \, dx}{42 d^4 e}\\ &=\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}-\frac{\left (B (b c-a d) g^3\right ) \int \left (-\frac{b (b c-a d) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d^2}+\frac{b (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d}+\frac{(-b c+a d)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d^2 (c+d x)}\right ) \, dx}{126 d}+\frac{\left (B (b c-a d)^2 g^3\right ) \int \left (\frac{b \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d}+\frac{(-b c+a d) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d (c+d x)}\right ) \, dx}{84 d^2}-\frac{\left (b B (b c-a d)^3 g^3\right ) \int \left (-\frac{a \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{(b c-a d) (a+b x)}+\frac{c \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{(b c-a d) (c+d x)}\right ) \, dx}{42 d^3}+\frac{\left (B (b c-a d)^3 g^3\right ) \int \frac{(b c-a d) e \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{(a+b x) (c+d x)} \, dx}{42 d^4 e}\\ &=\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}-\frac{\left (b B (b c-a d) g^3\right ) \int (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{126 d^2}+\frac{\left (b B (b c-a d)^2 g^3\right ) \int \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{126 d^3}+\frac{\left (b B (b c-a d)^2 g^3\right ) \int \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{84 d^3}+\frac{\left (a b B (b c-a d)^2 g^3\right ) \int \frac{A+B \log \left (\frac{e (a+b x)}{c+d x}\right )}{a+b x} \, dx}{42 d^3}-\frac{\left (b B c (b c-a d)^2 g^3\right ) \int \frac{A+B \log \left (\frac{e (a+b x)}{c+d x}\right )}{c+d x} \, dx}{42 d^3}-\frac{\left (B (b c-a d)^3 g^3\right ) \int \frac{A+B \log \left (\frac{e (a+b x)}{c+d x}\right )}{c+d x} \, dx}{126 d^3}-\frac{\left (B (b c-a d)^3 g^3\right ) \int \frac{A+B \log \left (\frac{e (a+b x)}{c+d x}\right )}{c+d x} \, dx}{84 d^3}+\frac{\left (B (b c-a d)^4 g^3\right ) \int \frac{\left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{(a+b x) (c+d x)} \, dx}{42 d^4}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{\left (B^2 (b c-a d) g^3\right ) \int \frac{(b c-a d) (a+b x)}{c+d x} \, dx}{252 d^2}+\frac{\left (b B^2 c (b c-a d)^2 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (c+d x)}{e (a+b x)} \, dx}{42 d^4}-\frac{\left (a B^2 (b c-a d)^2 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (a+b x)}{e (a+b x)} \, dx}{42 d^3}+\frac{\left (b B^2 (b c-a d)^2 g^3\right ) \int \log \left (\frac{e (a+b x)}{c+d x}\right ) \, dx}{126 d^3}+\frac{\left (b B^2 (b c-a d)^2 g^3\right ) \int \log \left (\frac{e (a+b x)}{c+d x}\right ) \, dx}{84 d^3}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (c+d x)}{e (a+b x)} \, dx}{126 d^4}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (c+d x)}{e (a+b x)} \, dx}{84 d^4}+\frac{\left (B (b c-a d)^4 g^3\right ) \int \left (\frac{d \left (-A-B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{(b c-a d) (c+d x)}+\frac{b \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{(b c-a d) (a+b x)}\right ) \, dx}{42 d^4}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{\left (B^2 (b c-a d)^2 g^3\right ) \int \frac{a+b x}{c+d x} \, dx}{252 d^2}+\frac{\left (b B (b c-a d)^3 g^3\right ) \int \frac{\left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{a+b x} \, dx}{42 d^4}+\frac{\left (B (b c-a d)^3 g^3\right ) \int \frac{\left (-A-B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{c+d x} \, dx}{42 d^3}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{1}{c+d x} \, dx}{126 d^3}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{1}{c+d x} \, dx}{84 d^3}+\frac{\left (b B^2 c (b c-a d)^2 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (c+d x)}{a+b x} \, dx}{42 d^4 e}-\frac{\left (a B^2 (b c-a d)^2 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (a+b x)}{a+b x} \, dx}{42 d^3 e}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (c+d x)}{a+b x} \, dx}{126 d^4 e}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (c+d x)}{a+b x} \, dx}{84 d^4 e}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{5 B^2 (b c-a d)^3 g^3 \log (c+d x)}{252 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{\left (B^2 (b c-a d)^2 g^3\right ) \int \left (\frac{b}{d}+\frac{-b c+a d}{d (c+d x)}\right ) \, dx}{252 d^2}+\frac{\left (b B (b c-a d)^3 g^3\right ) \int \left (\frac{A \log (84 c+84 d x)}{a+b x}+\frac{B \log \left (\frac{e (a+b x)}{c+d x}\right ) \log (84 c+84 d x)}{a+b x}\right ) \, dx}{42 d^4}+\frac{\left (B (b c-a d)^3 g^3\right ) \int \left (\frac{A \log (84 c+84 d x)}{-c-d x}+\frac{B \log \left (\frac{e (a+b x)}{c+d x}\right ) \log (84 c+84 d x)}{-c-d x}\right ) \, dx}{42 d^3}+\frac{\left (b B^2 c (b c-a d)^2 g^3\right ) \int \left (\frac{b e \log (c+d x)}{a+b x}-\frac{d e \log (c+d x)}{c+d x}\right ) \, dx}{42 d^4 e}-\frac{\left (a B^2 (b c-a d)^2 g^3\right ) \int \left (\frac{b e \log (a+b x)}{a+b x}-\frac{d e \log (a+b x)}{c+d x}\right ) \, dx}{42 d^3 e}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \left (\frac{b e \log (c+d x)}{a+b x}-\frac{d e \log (c+d x)}{c+d x}\right ) \, dx}{126 d^4 e}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \left (\frac{b e \log (c+d x)}{a+b x}-\frac{d e \log (c+d x)}{c+d x}\right ) \, dx}{84 d^4 e}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{b B^2 (b c-a d)^2 g^3 x}{252 d^3}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{B^2 (b c-a d)^3 g^3 \log (c+d x)}{42 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{\left (b^2 B^2 c (b c-a d)^2 g^3\right ) \int \frac{\log (c+d x)}{a+b x} \, dx}{42 d^4}-\frac{\left (a b B^2 (b c-a d)^2 g^3\right ) \int \frac{\log (a+b x)}{a+b x} \, dx}{42 d^3}-\frac{\left (b B^2 c (b c-a d)^2 g^3\right ) \int \frac{\log (c+d x)}{c+d x} \, dx}{42 d^3}+\frac{\left (a B^2 (b c-a d)^2 g^3\right ) \int \frac{\log (a+b x)}{c+d x} \, dx}{42 d^2}+\frac{\left (A b B (b c-a d)^3 g^3\right ) \int \frac{\log (84 c+84 d x)}{a+b x} \, dx}{42 d^4}+\frac{\left (b B^2 (b c-a d)^3 g^3\right ) \int \frac{\log (c+d x)}{a+b x} \, dx}{126 d^4}+\frac{\left (b B^2 (b c-a d)^3 g^3\right ) \int \frac{\log (c+d x)}{a+b x} \, dx}{84 d^4}+\frac{\left (b B^2 (b c-a d)^3 g^3\right ) \int \frac{\log \left (\frac{e (a+b x)}{c+d x}\right ) \log (84 c+84 d x)}{a+b x} \, dx}{42 d^4}+\frac{\left (A B (b c-a d)^3 g^3\right ) \int \frac{\log (84 c+84 d x)}{-c-d x} \, dx}{42 d^3}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{\log (c+d x)}{c+d x} \, dx}{126 d^3}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{\log (c+d x)}{c+d x} \, dx}{84 d^3}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{\log \left (\frac{e (a+b x)}{c+d x}\right ) \log (84 c+84 d x)}{-c-d x} \, dx}{42 d^3}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{b B^2 (b c-a d)^2 g^3 x}{252 d^3}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{B^2 (b c-a d)^3 g^3 \log (c+d x)}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{252 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^3}+\frac{A B (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (84 c+84 d x)}{42 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{e (a+b x)}{c+d x}\right ) \log ^2(84 c+84 d x)}{84 d^4}-\frac{\left (b B^2 c (b c-a d)^2 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,c+d x\right )}{42 d^4}-\frac{\left (a B^2 (b c-a d)^2 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,a+b x\right )}{42 d^3}-\frac{\left (a b B^2 (b c-a d)^2 g^3\right ) \int \frac{\log \left (\frac{b (c+d x)}{b c-a d}\right )}{a+b x} \, dx}{42 d^3}-\frac{\left (b B^2 c (b c-a d)^2 g^3\right ) \int \frac{\log \left (\frac{d (a+b x)}{-b c+a d}\right )}{c+d x} \, dx}{42 d^3}+\frac{\left (A B (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int -\frac{84 \log (x)}{x} \, dx,x,84 c+84 d x\right )}{3528 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,c+d x\right )}{126 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,c+d x\right )}{84 d^4}+\frac{\left (b B^2 (b c-a d)^3 g^3\right ) \int \frac{\log ^2(84 c+84 d x)}{a+b x} \, dx}{84 d^4}+\frac{\left (b B^2 (b c-a d)^3 g^3\right ) \int \frac{\log (a+b x) \log (84 c+84 d x)}{a+b x} \, dx}{42 d^4}+\frac{\left (b B^2 (b c-a d)^3 g^3\right ) \int \frac{\log \left (\frac{1}{c+d x}\right ) \log (84 c+84 d x)}{a+b x} \, dx}{42 d^4}-\frac{\left (2 A B (b c-a d)^3 g^3\right ) \int \frac{\log \left (\frac{84 d (a+b x)}{-84 b c+84 a d}\right )}{84 c+84 d x} \, dx}{d^3}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{\log \left (\frac{d (a+b x)}{-b c+a d}\right )}{c+d x} \, dx}{126 d^3}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{\log \left (\frac{d (a+b x)}{-b c+a d}\right )}{c+d x} \, dx}{84 d^3}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \int \frac{\log ^2(84 c+84 d x)}{c+d x} \, dx}{84 d^3}+\frac{\left (b B^2 (b c-a d)^3 g^3 \left (-\log (a+b x)-\log \left (\frac{1}{c+d x}\right )+\log \left (\frac{e (a+b x)}{c+d x}\right )\right )\right ) \int \frac{\log (84 c+84 d x)}{a+b x} \, dx}{42 d^4}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{b B^2 (b c-a d)^2 g^3 x}{252 d^3}-\frac{a B^2 (b c-a d)^2 g^3 \log ^2(a+b x)}{84 d^3}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{B^2 (b c-a d)^3 g^3 \log (c+d x)}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{252 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{b B^2 c (b c-a d)^2 g^3 \log ^2(c+d x)}{84 d^4}-\frac{5 B^2 (b c-a d)^3 g^3 \log ^2(c+d x)}{504 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^3}+\frac{A B (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (84 c+84 d x)}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{42 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 c+84 d x)}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{e (a+b x)}{c+d x}\right ) \log ^2(84 c+84 d x)}{84 d^4}-\frac{\left (b B^2 c (b c-a d)^2 g^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{42 d^4}-\frac{\left (a B^2 (b c-a d)^2 g^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{d x}{b c-a d}\right )}{x} \, dx,x,a+b x\right )}{42 d^3}-\frac{\left (A B (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,84 c+84 d x\right )}{42 d^4}-\frac{\left (A B (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{b x}{-84 b c+84 a d}\right )}{x} \, dx,x,84 c+84 d x\right )}{42 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{84 \log ^2(x)}{x} \, dx,x,84 c+84 d x\right )}{7056 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{126 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{84 d^4}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x) \log \left (\frac{84 b c-84 a d}{b}+\frac{84 d x}{b}\right )}{x} \, dx,x,a+b x\right )}{42 d^4}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (\frac{1}{-\frac{-b c+a d}{b}+\frac{d x}{b}}\right ) \log \left (-\frac{-84 b c+84 a d}{b}+\frac{84 d x}{b}\right )}{x} \, dx,x,a+b x\right )}{42 d^4}-\frac{\left (2 B^2 (b c-a d)^3 g^3\right ) \int \frac{\log \left (\frac{84 d (a+b x)}{-84 b c+84 a d}\right ) \log (84 c+84 d x)}{84 c+84 d x} \, dx}{d^3}-\frac{\left (2 B^2 (b c-a d)^3 g^3 \left (-\log (a+b x)-\log \left (\frac{1}{c+d x}\right )+\log \left (\frac{e (a+b x)}{c+d x}\right )\right )\right ) \int \frac{\log \left (\frac{84 d (a+b x)}{-84 b c+84 a d}\right )}{84 c+84 d x} \, dx}{d^3}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{b B^2 (b c-a d)^2 g^3 x}{252 d^3}-\frac{a B^2 (b c-a d)^2 g^3 \log ^2(a+b x)}{84 d^3}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{B^2 (b c-a d)^3 g^3 \log (c+d x)}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{252 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{b B^2 c (b c-a d)^2 g^3 \log ^2(c+d x)}{84 d^4}-\frac{5 B^2 (b c-a d)^3 g^3 \log ^2(c+d x)}{504 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log (84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log \left (\frac{1}{c+d x}\right ) \log (84 (c+d x))}{42 d^4}-\frac{A B (b c-a d)^3 g^3 \log ^2(84 (c+d x))}{84 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^3}+\frac{A B (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (84 c+84 d x)}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{42 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 c+84 d x)}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{e (a+b x)}{c+d x}\right ) \log ^2(84 c+84 d x)}{84 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^3}+\frac{b B^2 c (b c-a d)^2 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{A B (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{252 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log ^2(x)}{x} \, dx,x,84 c+84 d x\right )}{84 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x) \log \left (\frac{84 d \left (\frac{-84 b c+84 a d}{84 d}+\frac{b x}{84 d}\right )}{-84 b c+84 a d}\right )}{x} \, dx,x,84 c+84 d x\right )}{42 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x) \log \left (\frac{1}{-\frac{-b c+a d}{b}+\frac{d x}{b}}\right )}{-\frac{-b c+a d}{b}+\frac{d x}{b}} \, dx,x,a+b x\right )}{42 b d^3}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log ^2(x)}{\frac{84 b c-84 a d}{b}+\frac{84 d x}{b}} \, dx,x,a+b x\right )}{b d^3}+\frac{\left (2 B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x) \log \left (-\frac{-84 b c+84 a d}{b}+\frac{84 d x}{b}\right )}{-\frac{-84 b c+84 a d}{b}+\frac{84 d x}{b}} \, dx,x,a+b x\right )}{b d^3}-\frac{\left (B^2 (b c-a d)^3 g^3 \left (-\log (a+b x)-\log \left (\frac{1}{c+d x}\right )+\log \left (\frac{e (a+b x)}{c+d x}\right )\right )\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{b x}{-84 b c+84 a d}\right )}{x} \, dx,x,84 c+84 d x\right )}{42 d^4}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{b B^2 (b c-a d)^2 g^3 x}{252 d^3}-\frac{a B^2 (b c-a d)^2 g^3 \log ^2(a+b x)}{84 d^3}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{B^2 (b c-a d)^3 g^3 \log (c+d x)}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{252 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{b B^2 c (b c-a d)^2 g^3 \log ^2(c+d x)}{84 d^4}-\frac{5 B^2 (b c-a d)^3 g^3 \log ^2(c+d x)}{504 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log (84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log \left (\frac{1}{c+d x}\right ) \log (84 (c+d x))}{42 d^4}-\frac{A B (b c-a d)^3 g^3 \log ^2(84 (c+d x))}{84 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^3}-\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{84 d^4}+\frac{A B (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (84 c+84 d x)}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{42 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 c+84 d x)}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{e (a+b x)}{c+d x}\right ) \log ^2(84 c+84 d x)}{84 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^3}+\frac{b B^2 c (b c-a d)^2 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{A B (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{252 d^4}-\frac{B^2 (b c-a d)^3 g^3 \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (84 (c+d x)) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int x^2 \, dx,x,\log (84 (c+d x))\right )}{84 d^4}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x) \log \left (\frac{-84 b c+84 a d}{84 d}+\frac{b x}{84 d}\right )}{x} \, dx,x,84 (c+d x)\right )}{42 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (\frac{1}{x}\right ) \log \left (\frac{-b c+a d}{d}+\frac{b x}{d}\right )}{x} \, dx,x,c+d x\right )}{42 d^4}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x) \log \left (1+\frac{84 d x}{84 b c-84 a d}\right )}{x} \, dx,x,a+b x\right )}{42 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{b x}{-84 b c+84 a d}\right )}{x} \, dx,x,84 c+84 d x\right )}{42 d^4}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{b B^2 (b c-a d)^2 g^3 x}{252 d^3}-\frac{a B^2 (b c-a d)^2 g^3 \log ^2(a+b x)}{84 d^3}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log ^2\left (\frac{1}{c+d x}\right )}{84 d^4}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{B^2 (b c-a d)^3 g^3 \log (c+d x)}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{252 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{b B^2 c (b c-a d)^2 g^3 \log ^2(c+d x)}{84 d^4}-\frac{5 B^2 (b c-a d)^3 g^3 \log ^2(c+d x)}{504 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log (84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log \left (\frac{1}{c+d x}\right ) \log (84 (c+d x))}{42 d^4}-\frac{A B (b c-a d)^3 g^3 \log ^2(84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log ^2(84 (c+d x))}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log ^3(84 (c+d x))}{252 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^3}-\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{84 d^4}+\frac{A B (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (84 c+84 d x)}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{42 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 c+84 d x)}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{e (a+b x)}{c+d x}\right ) \log ^2(84 c+84 d x)}{84 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^3}-\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{A B (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{252 d^4}-\frac{B^2 (b c-a d)^3 g^3 \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (84 (c+d x)) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \text{Li}_3\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}-\frac{\left (b B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log ^2(x)}{\frac{-84 b c+84 a d}{84 d}+\frac{b x}{84 d}} \, dx,x,84 (c+d x)\right )}{7056 d^5}-\frac{\left (b B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log ^2\left (\frac{1}{x}\right )}{\frac{-b c+a d}{d}+\frac{b x}{d}} \, dx,x,c+d x\right )}{84 d^5}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{84 d x}{84 b c-84 a d}\right )}{x} \, dx,x,a+b x\right )}{42 d^4}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{b B^2 (b c-a d)^2 g^3 x}{252 d^3}-\frac{a B^2 (b c-a d)^2 g^3 \log ^2(a+b x)}{84 d^3}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log ^2\left (\frac{1}{c+d x}\right )}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2\left (\frac{1}{c+d x}\right )}{84 d^4}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{B^2 (b c-a d)^3 g^3 \log (c+d x)}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{252 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{b B^2 c (b c-a d)^2 g^3 \log ^2(c+d x)}{84 d^4}-\frac{5 B^2 (b c-a d)^3 g^3 \log ^2(c+d x)}{504 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log (84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log \left (\frac{1}{c+d x}\right ) \log (84 (c+d x))}{42 d^4}-\frac{A B (b c-a d)^3 g^3 \log ^2(84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log ^2(84 (c+d x))}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 (c+d x))}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log ^3(84 (c+d x))}{252 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^3}-\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{84 d^4}+\frac{A B (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (84 c+84 d x)}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{42 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 c+84 d x)}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{e (a+b x)}{c+d x}\right ) \log ^2(84 c+84 d x)}{84 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^3}-\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{A B (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{252 d^4}-\frac{B^2 (b c-a d)^3 g^3 \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (84 (c+d x)) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{B^2 (b c-a d)^3 g^3 \text{Li}_3\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \text{Li}_3\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}-\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (\frac{1}{x}\right ) \log \left (1+\frac{b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{42 d^4}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\log (x) \log \left (1+\frac{b x}{-84 b c+84 a d}\right )}{x} \, dx,x,84 (c+d x)\right )}{42 d^4}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{b B^2 (b c-a d)^2 g^3 x}{252 d^3}-\frac{a B^2 (b c-a d)^2 g^3 \log ^2(a+b x)}{84 d^3}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log ^2\left (\frac{1}{c+d x}\right )}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2\left (\frac{1}{c+d x}\right )}{84 d^4}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{B^2 (b c-a d)^3 g^3 \log (c+d x)}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{252 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{b B^2 c (b c-a d)^2 g^3 \log ^2(c+d x)}{84 d^4}-\frac{5 B^2 (b c-a d)^3 g^3 \log ^2(c+d x)}{504 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log (84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log \left (\frac{1}{c+d x}\right ) \log (84 (c+d x))}{42 d^4}-\frac{A B (b c-a d)^3 g^3 \log ^2(84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log ^2(84 (c+d x))}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 (c+d x))}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log ^3(84 (c+d x))}{252 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^3}-\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{84 d^4}+\frac{A B (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (84 c+84 d x)}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{42 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 c+84 d x)}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{e (a+b x)}{c+d x}\right ) \log ^2(84 c+84 d x)}{84 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^3}-\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{A B (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{252 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{1}{c+d x}\right ) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{B^2 (b c-a d)^3 g^3 \text{Li}_3\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \text{Li}_3\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{42 d^4}+\frac{\left (B^2 (b c-a d)^3 g^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{b x}{-84 b c+84 a d}\right )}{x} \, dx,x,84 (c+d x)\right )}{42 d^4}\\ &=\frac{5 A b B (b c-a d)^2 g^3 x}{252 d^3}+\frac{b B^2 (b c-a d)^2 g^3 x}{252 d^3}-\frac{a B^2 (b c-a d)^2 g^3 \log ^2(a+b x)}{84 d^3}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log ^2\left (\frac{1}{c+d x}\right )}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2\left (\frac{1}{c+d x}\right )}{84 d^4}+\frac{5 B^2 (b c-a d)^2 g^3 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{252 d^3}-\frac{B (b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{252 d^2}+\frac{a B (b c-a d)^2 g^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{42 d^3}+\frac{b (b c-a d)^2 g^3 x \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{84 d^3}-\frac{(b c-a d) g^3 (a+b x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{168 d^2}+\frac{g^3 (a+b x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{252 d}-\frac{B^2 (b c-a d)^3 g^3 \log (c+d x)}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{252 d^4}-\frac{b B c (b c-a d)^2 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{42 d^4}-\frac{5 B (b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{252 d^4}-\frac{b B^2 c (b c-a d)^2 g^3 \log ^2(c+d x)}{84 d^4}-\frac{5 B^2 (b c-a d)^3 g^3 \log ^2(c+d x)}{504 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log (84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log \left (\frac{1}{c+d x}\right ) \log (84 (c+d x))}{42 d^4}-\frac{A B (b c-a d)^3 g^3 \log ^2(84 (c+d x))}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \log ^2(84 (c+d x))}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 (c+d x))}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log ^3(84 (c+d x))}{252 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^3}-\frac{B^2 (b c-a d)^3 g^3 \log ^2(a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{84 d^4}+\frac{A B (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (84 c+84 d x)}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \log (84 c+84 d x)}{42 d^4}-\frac{(b c-a d)^3 g^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \log (84 c+84 d x)}{84 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log ^2(84 c+84 d x)}{84 d^4}-\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{e (a+b x)}{c+d x}\right ) \log ^2(84 c+84 d x)}{84 d^4}+\frac{a B^2 (b c-a d)^2 g^3 \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^3}-\frac{B^2 (b c-a d)^3 g^3 \log (a+b x) \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^4}+\frac{b B^2 c (b c-a d)^2 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{A B (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{5 B^2 (b c-a d)^3 g^3 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{252 d^4}+\frac{B^2 (b c-a d)^3 g^3 \log \left (\frac{1}{c+d x}\right ) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}-\frac{B^2 (b c-a d)^3 g^3 \left (\log (a+b x)+\log \left (\frac{1}{c+d x}\right )-\log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}+\frac{B^2 (b c-a d)^3 g^3 \text{Li}_3\left (-\frac{d (a+b x)}{b c-a d}\right )}{42 d^4}+\frac{B^2 (b c-a d)^3 g^3 \text{Li}_3\left (\frac{b (c+d x)}{b c-a d}\right )}{42 d^4}\\ \end{align*}

Mathematica [B]  time = 1.85366, size = 4802, normalized size = 6.69 \[ \text{Result too large to show} \]

Antiderivative was successfully verified.

[In]

Integrate[((a*g + b*g*x)^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2)/(c*i + d*i*x),x]

[Out]

(g^3*(36*A*b^3*B*c^3 - 144*a*A*b^2*B*c^2*d - 66*a*b^2*B^2*c^2*d + 216*a^2*A*b*B*c*d^2 + 162*a^2*b*B^2*c*d^2 -
108*a^3*A*B*d^3 - 108*a^3*B^2*d^3 + 18*A^2*b^3*c^2*d*x + 30*A*b^3*B*c^2*d*x + 6*b^3*B^2*c^2*d*x - 54*a*A^2*b^2
*c*d^2*x - 72*a*A*b^2*B*c*d^2*x - 12*a*b^2*B^2*c*d^2*x + 54*a^2*A^2*b*d^3*x + 42*a^2*A*b*B*d^3*x + 6*a^2*b*B^2
*d^3*x - 9*A^2*b^3*c*d^2*x^2 - 6*A*b^3*B*c*d^2*x^2 + 27*a*A^2*b^2*d^3*x^2 + 6*a*A*b^2*B*d^3*x^2 + 6*A^2*b^3*d^
3*x^3 - 36*b^3*B^2*c^3*Log[a/b + x] + 36*a*A*b^2*B*c^2*d*Log[a/b + x] + 174*a*b^2*B^2*c^2*d*Log[a/b + x] - 108
*a^2*A*b*B*c*d^2*Log[a/b + x] - 297*a^2*b*B^2*c*d^2*Log[a/b + x] + 108*a^3*A*B*d^3*Log[a/b + x] + 167*a^3*B^2*
d^3*Log[a/b + x] - 18*a*b^2*B^2*c^2*d*Log[a/b + x]^2 + 63*a^2*b*B^2*c*d^2*Log[a/b + x]^2 - 75*a^3*B^2*d^3*Log[
a/b + x]^2 - 36*A*b^3*B*c^3*Log[c/d + x] - 49*b^3*B^2*c^3*Log[c/d + x] + 108*a*A*b^2*B*c^2*d*Log[c/d + x] + 45
*a*b^2*B^2*c^2*d*Log[c/d + x] - 108*a^2*A*b*B*c*d^2*Log[c/d + x] + 108*a^2*b*B^2*c*d^2*Log[c/d + x] - 108*a^3*
B^2*d^3*Log[c/d + x] + 36*b^3*B^2*c^3*Log[a/b + x]*Log[c/d + x] - 108*a*b^2*B^2*c^2*d*Log[a/b + x]*Log[c/d + x
] + 90*a^2*b*B^2*c*d^2*Log[a/b + x]*Log[c/d + x] + 42*a^3*B^2*d^3*Log[a/b + x]*Log[c/d + x] + 18*A*b^3*B*c^3*L
og[c/d + x]^2 - 3*b^3*B^2*c^3*Log[c/d + x]^2 - 54*a*A*b^2*B*c^2*d*Log[c/d + x]^2 + 27*a*b^2*B^2*c^2*d*Log[c/d
+ x]^2 + 54*a^2*A*b*B*c*d^2*Log[c/d + x]^2 - 54*a^2*b*B^2*c*d^2*Log[c/d + x]^2 - 18*a^3*A*B*d^3*Log[c/d + x]^2
 + 12*b^3*B^2*c^3*Log[c/d + x]^3 - 36*a*b^2*B^2*c^2*d*Log[c/d + x]^3 + 36*a^2*b*B^2*c*d^2*Log[c/d + x]^3 + 18*
a^2*A*b*B*c*d^2*Log[a + b*x] + 15*a^2*b*B^2*c*d^2*Log[a + b*x] - 42*a^3*A*B*d^3*Log[a + b*x] - 23*a^3*B^2*d^3*
Log[a + b*x] - 18*a^2*b*B^2*c*d^2*Log[a/b + x]*Log[a + b*x] + 42*a^3*B^2*d^3*Log[a/b + x]*Log[a + b*x] + 18*a^
2*b*B^2*c*d^2*Log[c/d + x]*Log[a + b*x] - 42*a^3*B^2*d^3*Log[c/d + x]*Log[a + b*x] - 18*b^3*B^2*c^3*Log[c/d +
x]^2*Log[(d*(a + b*x))/(-(b*c) + a*d)] + 54*a*b^2*B^2*c^2*d*Log[c/d + x]^2*Log[(d*(a + b*x))/(-(b*c) + a*d)] -
 54*a^2*b*B^2*c*d^2*Log[c/d + x]^2*Log[(d*(a + b*x))/(-(b*c) + a*d)] + 36*b^3*B^2*c^3*Log[(e*(a + b*x))/(c + d
*x)] - 144*a*b^2*B^2*c^2*d*Log[(e*(a + b*x))/(c + d*x)] + 216*a^2*b*B^2*c*d^2*Log[(e*(a + b*x))/(c + d*x)] - 1
08*a^3*B^2*d^3*Log[(e*(a + b*x))/(c + d*x)] + 36*A*b^3*B*c^2*d*x*Log[(e*(a + b*x))/(c + d*x)] + 30*b^3*B^2*c^2
*d*x*Log[(e*(a + b*x))/(c + d*x)] - 108*a*A*b^2*B*c*d^2*x*Log[(e*(a + b*x))/(c + d*x)] - 72*a*b^2*B^2*c*d^2*x*
Log[(e*(a + b*x))/(c + d*x)] + 108*a^2*A*b*B*d^3*x*Log[(e*(a + b*x))/(c + d*x)] + 42*a^2*b*B^2*d^3*x*Log[(e*(a
 + b*x))/(c + d*x)] - 18*A*b^3*B*c*d^2*x^2*Log[(e*(a + b*x))/(c + d*x)] - 6*b^3*B^2*c*d^2*x^2*Log[(e*(a + b*x)
)/(c + d*x)] + 54*a*A*b^2*B*d^3*x^2*Log[(e*(a + b*x))/(c + d*x)] + 6*a*b^2*B^2*d^3*x^2*Log[(e*(a + b*x))/(c +
d*x)] + 12*A*b^3*B*d^3*x^3*Log[(e*(a + b*x))/(c + d*x)] + 36*a*b^2*B^2*c^2*d*Log[a/b + x]*Log[(e*(a + b*x))/(c
 + d*x)] - 108*a^2*b*B^2*c*d^2*Log[a/b + x]*Log[(e*(a + b*x))/(c + d*x)] + 108*a^3*B^2*d^3*Log[a/b + x]*Log[(e
*(a + b*x))/(c + d*x)] - 36*b^3*B^2*c^3*Log[c/d + x]*Log[(e*(a + b*x))/(c + d*x)] + 108*a*b^2*B^2*c^2*d*Log[c/
d + x]*Log[(e*(a + b*x))/(c + d*x)] - 108*a^2*b*B^2*c*d^2*Log[c/d + x]*Log[(e*(a + b*x))/(c + d*x)] + 18*b^3*B
^2*c^3*Log[c/d + x]^2*Log[(e*(a + b*x))/(c + d*x)] - 54*a*b^2*B^2*c^2*d*Log[c/d + x]^2*Log[(e*(a + b*x))/(c +
d*x)] + 54*a^2*b*B^2*c*d^2*Log[c/d + x]^2*Log[(e*(a + b*x))/(c + d*x)] + 18*a^2*b*B^2*c*d^2*Log[a + b*x]*Log[(
e*(a + b*x))/(c + d*x)] - 42*a^3*B^2*d^3*Log[a + b*x]*Log[(e*(a + b*x))/(c + d*x)] + 18*b^3*B^2*c^2*d*x*Log[(e
*(a + b*x))/(c + d*x)]^2 - 54*a*b^2*B^2*c*d^2*x*Log[(e*(a + b*x))/(c + d*x)]^2 + 54*a^2*b*B^2*d^3*x*Log[(e*(a
+ b*x))/(c + d*x)]^2 - 9*b^3*B^2*c*d^2*x^2*Log[(e*(a + b*x))/(c + d*x)]^2 + 27*a*b^2*B^2*d^3*x^2*Log[(e*(a + b
*x))/(c + d*x)]^2 + 6*b^3*B^2*d^3*x^3*Log[(e*(a + b*x))/(c + d*x)]^2 - 18*A^2*b^3*c^3*Log[c + d*x] - 30*A*b^3*
B*c^3*Log[c + d*x] + 49*b^3*B^2*c^3*Log[c + d*x] + 54*a*A^2*b^2*c^2*d*Log[c + d*x] + 54*a*A*b^2*B*c^2*d*Log[c
+ d*x] - 111*a*b^2*B^2*c^2*d*Log[c + d*x] - 54*a^2*A^2*b*c*d^2*Log[c + d*x] + 66*a^2*b*B^2*c*d^2*Log[c + d*x]
+ 18*a^3*A^2*d^3*Log[c + d*x] + 36*A*b^3*B*c^3*Log[a/b + x]*Log[c + d*x] + 30*b^3*B^2*c^3*Log[a/b + x]*Log[c +
 d*x] - 108*a*A*b^2*B*c^2*d*Log[a/b + x]*Log[c + d*x] - 54*a*b^2*B^2*c^2*d*Log[a/b + x]*Log[c + d*x] + 108*a^2
*A*b*B*c*d^2*Log[a/b + x]*Log[c + d*x] - 36*a^3*A*B*d^3*Log[a/b + x]*Log[c + d*x] - 18*b^3*B^2*c^3*Log[a/b + x
]^2*Log[c + d*x] + 54*a*b^2*B^2*c^2*d*Log[a/b + x]^2*Log[c + d*x] - 54*a^2*b*B^2*c*d^2*Log[a/b + x]^2*Log[c +
d*x] - 36*A*b^3*B*c^3*Log[c/d + x]*Log[c + d*x] - 30*b^3*B^2*c^3*Log[c/d + x]*Log[c + d*x] + 108*a*A*b^2*B*c^2
*d*Log[c/d + x]*Log[c + d*x] + 54*a*b^2*B^2*c^2*d*Log[c/d + x]*Log[c + d*x] - 108*a^2*A*b*B*c*d^2*Log[c/d + x]
*Log[c + d*x] + 36*a^3*A*B*d^3*Log[c/d + x]*Log[c + d*x] + 36*b^3*B^2*c^3*Log[a/b + x]*Log[c/d + x]*Log[c + d*
x] - 108*a*b^2*B^2*c^2*d*Log[a/b + x]*Log[c/d + x]*Log[c + d*x] + 108*a^2*b*B^2*c*d^2*Log[a/b + x]*Log[c/d + x
]*Log[c + d*x] - 18*b^3*B^2*c^3*Log[c/d + x]^2*Log[c + d*x] + 54*a*b^2*B^2*c^2*d*Log[c/d + x]^2*Log[c + d*x] -
 54*a^2*b*B^2*c*d^2*Log[c/d + x]^2*Log[c + d*x] - 36*A*b^3*B*c^3*Log[(e*(a + b*x))/(c + d*x)]*Log[c + d*x] - 3
0*b^3*B^2*c^3*Log[(e*(a + b*x))/(c + d*x)]*Log[c + d*x] + 108*a*A*b^2*B*c^2*d*Log[(e*(a + b*x))/(c + d*x)]*Log
[c + d*x] + 54*a*b^2*B^2*c^2*d*Log[(e*(a + b*x))/(c + d*x)]*Log[c + d*x] - 108*a^2*A*b*B*c*d^2*Log[(e*(a + b*x
))/(c + d*x)]*Log[c + d*x] + 36*a^3*A*B*d^3*Log[(e*(a + b*x))/(c + d*x)]*Log[c + d*x] + 36*b^3*B^2*c^3*Log[a/b
 + x]*Log[(e*(a + b*x))/(c + d*x)]*Log[c + d*x] - 108*a*b^2*B^2*c^2*d*Log[a/b + x]*Log[(e*(a + b*x))/(c + d*x)
]*Log[c + d*x] + 108*a^2*b*B^2*c*d^2*Log[a/b + x]*Log[(e*(a + b*x))/(c + d*x)]*Log[c + d*x] - 36*b^3*B^2*c^3*L
og[c/d + x]*Log[(e*(a + b*x))/(c + d*x)]*Log[c + d*x] + 108*a*b^2*B^2*c^2*d*Log[c/d + x]*Log[(e*(a + b*x))/(c
+ d*x)]*Log[c + d*x] - 108*a^2*b*B^2*c*d^2*Log[c/d + x]*Log[(e*(a + b*x))/(c + d*x)]*Log[c + d*x] - 18*b^3*B^2
*c^3*Log[(e*(a + b*x))/(c + d*x)]^2*Log[c + d*x] + 54*a*b^2*B^2*c^2*d*Log[(e*(a + b*x))/(c + d*x)]^2*Log[c + d
*x] - 54*a^2*b*B^2*c*d^2*Log[(e*(a + b*x))/(c + d*x)]^2*Log[c + d*x] - 36*A*b^3*B*c^3*Log[a/b + x]*Log[(b*(c +
 d*x))/(b*c - a*d)] - 66*b^3*B^2*c^3*Log[a/b + x]*Log[(b*(c + d*x))/(b*c - a*d)] + 108*a*A*b^2*B*c^2*d*Log[a/b
 + x]*Log[(b*(c + d*x))/(b*c - a*d)] + 198*a*b^2*B^2*c^2*d*Log[a/b + x]*Log[(b*(c + d*x))/(b*c - a*d)] - 108*a
^2*A*b*B*c*d^2*Log[a/b + x]*Log[(b*(c + d*x))/(b*c - a*d)] - 198*a^2*b*B^2*c*d^2*Log[a/b + x]*Log[(b*(c + d*x)
)/(b*c - a*d)] + 36*a^3*A*B*d^3*Log[a/b + x]*Log[(b*(c + d*x))/(b*c - a*d)] + 66*a^3*B^2*d^3*Log[a/b + x]*Log[
(b*(c + d*x))/(b*c - a*d)] + 18*b^3*B^2*c^3*Log[a/b + x]^2*Log[(b*(c + d*x))/(b*c - a*d)] - 54*a*b^2*B^2*c^2*d
*Log[a/b + x]^2*Log[(b*(c + d*x))/(b*c - a*d)] + 54*a^2*b*B^2*c*d^2*Log[a/b + x]^2*Log[(b*(c + d*x))/(b*c - a*
d)] - 36*b^3*B^2*c^3*Log[a/b + x]*Log[c/d + x]*Log[(b*(c + d*x))/(b*c - a*d)] + 108*a*b^2*B^2*c^2*d*Log[a/b +
x]*Log[c/d + x]*Log[(b*(c + d*x))/(b*c - a*d)] - 108*a^2*b*B^2*c*d^2*Log[a/b + x]*Log[c/d + x]*Log[(b*(c + d*x
))/(b*c - a*d)] - 36*b^3*B^2*c^3*Log[a/b + x]*Log[(e*(a + b*x))/(c + d*x)]*Log[(b*(c + d*x))/(b*c - a*d)] + 10
8*a*b^2*B^2*c^2*d*Log[a/b + x]*Log[(e*(a + b*x))/(c + d*x)]*Log[(b*(c + d*x))/(b*c - a*d)] - 108*a^2*b*B^2*c*d
^2*Log[a/b + x]*Log[(e*(a + b*x))/(c + d*x)]*Log[(b*(c + d*x))/(b*c - a*d)] - 18*a^3*B^2*d^3*Log[(e*(a + b*x))
/(c + d*x)]^2*Log[(b*c - a*d)/(b*c + b*d*x)] - 6*B*((6*A + 11*B)*(b*c - a*d)^3 + 6*b*B*c*(b^2*c^2 - 3*a*b*c*d
+ 3*a^2*d^2)*Log[c/d + x] + 6*b*B*c*(b^2*c^2 - 3*a*b*c*d + 3*a^2*d^2)*Log[(e*(a + b*x))/(c + d*x)])*PolyLog[2,
 (d*(a + b*x))/(-(b*c) + a*d)] - 36*a^3*B^2*d^3*Log[(e*(a + b*x))/(c + d*x)]*PolyLog[2, (d*(a + b*x))/(b*(c +
d*x))] - 36*b^3*B^2*c^3*Log[c/d + x]*PolyLog[2, (b*(c + d*x))/(b*c - a*d)] + 108*a*b^2*B^2*c^2*d*Log[c/d + x]*
PolyLog[2, (b*(c + d*x))/(b*c - a*d)] - 108*a^2*b*B^2*c*d^2*Log[c/d + x]*PolyLog[2, (b*(c + d*x))/(b*c - a*d)]
 + 36*b^3*B^2*c^3*PolyLog[3, (d*(a + b*x))/(-(b*c) + a*d)] - 108*a*b^2*B^2*c^2*d*PolyLog[3, (d*(a + b*x))/(-(b
*c) + a*d)] + 108*a^2*b*B^2*c*d^2*PolyLog[3, (d*(a + b*x))/(-(b*c) + a*d)] + 36*a^3*B^2*d^3*PolyLog[3, (d*(a +
 b*x))/(b*(c + d*x))] + 36*b^3*B^2*c^3*PolyLog[3, (b*(c + d*x))/(b*c - a*d)] - 108*a*b^2*B^2*c^2*d*PolyLog[3,
(b*(c + d*x))/(b*c - a*d)] + 108*a^2*b*B^2*c*d^2*PolyLog[3, (b*(c + d*x))/(b*c - a*d)]))/(18*d^4*i)

________________________________________________________________________________________

Maple [F]  time = 2.514, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( bgx+ag \right ) ^{3}}{dix+ci} \left ( A+B\ln \left ({\frac{e \left ( bx+a \right ) }{dx+c}} \right ) \right ) ^{2}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*g*x+a*g)^3*(A+B*ln(e*(b*x+a)/(d*x+c)))^2/(d*i*x+c*i),x)

[Out]

int((b*g*x+a*g)^3*(A+B*ln(e*(b*x+a)/(d*x+c)))^2/(d*i*x+c*i),x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*g*x+a*g)^3*(A+B*log(e*(b*x+a)/(d*x+c)))^2/(d*i*x+c*i),x, algorithm="maxima")

[Out]

3*A^2*a^2*b*g^3*(x/(d*i) - c*log(d*x + c)/(d^2*i)) - 1/6*A^2*b^3*g^3*(6*c^3*log(d*x + c)/(d^4*i) - (2*d^2*x^3
- 3*c*d*x^2 + 6*c^2*x)/(d^3*i)) + 3/2*A^2*a*b^2*g^3*(2*c^2*log(d*x + c)/(d^3*i) + (d*x^2 - 2*c*x)/(d^2*i)) + A
^2*a^3*g^3*log(d*i*x + c*i)/(d*i) - 1/6*(2*(b^3*c^3*g^3 - 3*a*b^2*c^2*d*g^3 + 3*a^2*b*c*d^2*g^3 - a^3*d^3*g^3)
*B^2*log(d*x + c)^3 - (2*B^2*b^3*d^3*g^3*x^3 - 3*(b^3*c*d^2*g^3 - 3*a*b^2*d^3*g^3)*B^2*x^2 + 6*(b^3*c^2*d*g^3
- 3*a*b^2*c*d^2*g^3 + 3*a^2*b*d^3*g^3)*B^2*x)*log(d*x + c)^2)/(d^4*i) - integrate(-1/3*(3*B^2*a^3*d^2*g^3*log(
e)^2 + 6*A*B*a^3*d^2*g^3*log(e) + 3*(B^2*b^3*d^2*g^3*log(e)^2 + 2*A*B*b^3*d^2*g^3*log(e))*x^3 + 9*(B^2*a*b^2*d
^2*g^3*log(e)^2 + 2*A*B*a*b^2*d^2*g^3*log(e))*x^2 + 3*(B^2*b^3*d^2*g^3*x^3 + 3*B^2*a*b^2*d^2*g^3*x^2 + 3*B^2*a
^2*b*d^2*g^3*x + B^2*a^3*d^2*g^3)*log(b*x + a)^2 + 9*(B^2*a^2*b*d^2*g^3*log(e)^2 + 2*A*B*a^2*b*d^2*g^3*log(e))
*x + 6*(B^2*a^3*d^2*g^3*log(e) + A*B*a^3*d^2*g^3 + (B^2*b^3*d^2*g^3*log(e) + A*B*b^3*d^2*g^3)*x^3 + 3*(B^2*a*b
^2*d^2*g^3*log(e) + A*B*a*b^2*d^2*g^3)*x^2 + 3*(B^2*a^2*b*d^2*g^3*log(e) + A*B*a^2*b*d^2*g^3)*x)*log(b*x + a)
- (6*B^2*a^3*d^2*g^3*log(e) + 6*A*B*a^3*d^2*g^3 + 2*(3*A*B*b^3*d^2*g^3 + (3*g^3*log(e) + g^3)*B^2*b^3*d^2)*x^3
 + 3*(6*A*B*a*b^2*d^2*g^3 - (b^3*c*d*g^3 - 3*(2*g^3*log(e) + g^3)*a*b^2*d^2)*B^2)*x^2 + 6*(3*A*B*a^2*b*d^2*g^3
 + (b^3*c^2*g^3 - 3*a*b^2*c*d*g^3 + 3*(g^3*log(e) + g^3)*a^2*b*d^2)*B^2)*x + 6*(B^2*b^3*d^2*g^3*x^3 + 3*B^2*a*
b^2*d^2*g^3*x^2 + 3*B^2*a^2*b*d^2*g^3*x + B^2*a^3*d^2*g^3)*log(b*x + a))*log(d*x + c))/(d^3*i*x + c*d^2*i), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{A^{2} b^{3} g^{3} x^{3} + 3 \, A^{2} a b^{2} g^{3} x^{2} + 3 \, A^{2} a^{2} b g^{3} x + A^{2} a^{3} g^{3} +{\left (B^{2} b^{3} g^{3} x^{3} + 3 \, B^{2} a b^{2} g^{3} x^{2} + 3 \, B^{2} a^{2} b g^{3} x + B^{2} a^{3} g^{3}\right )} \log \left (\frac{b e x + a e}{d x + c}\right )^{2} + 2 \,{\left (A B b^{3} g^{3} x^{3} + 3 \, A B a b^{2} g^{3} x^{2} + 3 \, A B a^{2} b g^{3} x + A B a^{3} g^{3}\right )} \log \left (\frac{b e x + a e}{d x + c}\right )}{d i x + c i}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*g*x+a*g)^3*(A+B*log(e*(b*x+a)/(d*x+c)))^2/(d*i*x+c*i),x, algorithm="fricas")

[Out]

integral((A^2*b^3*g^3*x^3 + 3*A^2*a*b^2*g^3*x^2 + 3*A^2*a^2*b*g^3*x + A^2*a^3*g^3 + (B^2*b^3*g^3*x^3 + 3*B^2*a
*b^2*g^3*x^2 + 3*B^2*a^2*b*g^3*x + B^2*a^3*g^3)*log((b*e*x + a*e)/(d*x + c))^2 + 2*(A*B*b^3*g^3*x^3 + 3*A*B*a*
b^2*g^3*x^2 + 3*A*B*a^2*b*g^3*x + A*B*a^3*g^3)*log((b*e*x + a*e)/(d*x + c)))/(d*i*x + c*i), x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*g*x+a*g)**3*(A+B*ln(e*(b*x+a)/(d*x+c)))**2/(d*i*x+c*i),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b g x + a g\right )}^{3}{\left (B \log \left (\frac{{\left (b x + a\right )} e}{d x + c}\right ) + A\right )}^{2}}{d i x + c i}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*g*x+a*g)^3*(A+B*log(e*(b*x+a)/(d*x+c)))^2/(d*i*x+c*i),x, algorithm="giac")

[Out]

integrate((b*g*x + a*g)^3*(B*log((b*x + a)*e/(d*x + c)) + A)^2/(d*i*x + c*i), x)